using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 企业顾问详细表
    /// </summary>
    [Table("JIUSHI_CUSTOMERCONSULTANTDETAIL")]
    public class CustomerconsultantdetailEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("F_ID")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 关联主表UUID
        /// </summary>
        [Column("F_UUID")]
        [MaxLength(255)]
        public string Uuid { get; set; }

        /// <summary>
        /// 管家ID
        /// </summary>
        [Column("F_UserId")]
        [MaxLength(50)]
        public string UserId { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        [Column("F_AMOUNT")]
        public decimal? Amount { get; set; }


        /// <summary>
        /// 审核类型
        /// </summary>
        [Column("F_Type")]
        public int? Type { get; set; }


        /// <summary>
        /// 合伙人人ID
        /// </summary>
        [Column("F_PARTNERUSERID")]
        [MaxLength(255)]
        public string PartnerUserId { get; set; }

        /// <summary>
        /// 合伙人积分
        /// </summary>
        [Column("F_PARTNERPOINT")]
        public decimal? PartnerPoint { get; set; }

        /// <summary>
        /// 上级合伙人ID
        /// </summary>
        [Column("F_PARENTPARTNERUSERID")]
        [MaxLength(255)]
        public string ParentPartnerUserId { get; set; }

        /// <summary>
        /// 上级合伙人抽佣积分
        /// </summary>
        [Column("F_PARENTUSERPOINT")]
        public decimal? ParentUserPoint { get; set; }


        /// <summary>
        /// 附件信息
        /// </summary>
        [Column("F_ATTACHMENTINFO")]
        [MaxLength(65535)]
        public string AttachmentInfo { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column("F_SORTCODE")]
        public int? SortCode { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        [MaxLength(50)]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        [MaxLength(50)]
        public string LastModifyUserId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        [MaxLength(50)]
        public string DeleteUserId { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSER")]
        [MaxLength(50)]
        public string CreatorUser { get; set; }


    }
}
